import { IFeidaoAiBrowserComponent } from '@feidao/web/interfaces';
import fire_component_msg from '@feidao/web/atom/browser/fsm/fire-component-msg';

export default async function (fd: IFeidaoAiBrowserComponent, ...args: any[]) {
	console.log('预览');
	const form_add = fd.data.form_add;
	const cont_address = form_add.cont_address.value;
	if (!cont_address) {
		fire_component_msg('zj-common-002', 'ec-001', 'fail', '请先输入地址！');
		return;
	}
	window.open(cont_address);
}
